Component({
  data: {
    progressWidth: 10
  },
  methods: {
    subWidthHandle() {
      let width = this.data.progressWidth;
      if (width <= 10) {
        width = 10;
      } else {
        width -= 10;
      }
      this.setData({
        progressWidth: width
      });
    },

    addWidthHandle() {
      let width = this.data.progressWidth;
      if (width >= 100) {
        width = 100;
      } else {
        width += 10;
      }
      this.setData({
        progressWidth: width
      });
    }
  }
});